using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace Raptor.Client
{
  public partial class frmInstructions : Form
  {
    public frmInstructions()
    {
      InitializeComponent();
    }

    private void btnDone_Click(object sender, EventArgs e)
    {
      this.Close();
    }

    private void frmInstructions_Load(object sender, EventArgs e)
    {
			string releaseNotes = Application.StartupPath + @"\Raptor_ReleaseNotes.txt";
			if (System.IO.File.Exists(releaseNotes))
			{
				using (StreamReader sr = new StreamReader(releaseNotes))
				{
					string line;
					while ((line = sr.ReadLine()) != null)
					{
						line = line + "\n\r";
						txtInstructions.Text += line;
					}
				}
			}
			else
			{
				MessageBox.Show(
					this,
					string.Format("The release notes file could not be found in this location:\n{0}", releaseNotes),
					"File not found",
					MessageBoxButtons.OK,
					MessageBoxIcon.Error);
				this.Close();
			}
    }
  }
}